@use "@/styles/Radius.module.scss";
@use "@/styles/ScreenSizes.module.scss";
@use "@/styles/Spacings.module.scss";
@use "@/styles/Typography.module.scss";

.button_wrapper {
  font-size: Typography.$small;
  white-space: nowrap;
  padding-inline: Spacings.$spacing04;
  padding-block: Spacings.$spacing02;
  border-radius: Radius.$normal;
  border: 1.5px solid transparent;
  cursor: pointer;
  display: flex;
  width: fit-content;
  background-color: var(--background-0);

  &.hidden {
    display: none;
  }

  &.primary {
    border-color: var(--primary-0);
    color: var(--primary-0);

    &:hover {
      background-color: var(--primary-0);
      color: var(--text-0);
    }
  }

  &.dangerous {
    border-color: var(--dangerous);
    color: var(--dangerous);

    &:hover {
      background-color: var(--dangerous);
      color: var(--text-0);
    }
  }

  &.gold {
    border-color: var(--gold);
    color: var(--gold);

    &:hover {
      background-color: var(--gold);
      color: var(--text-0);
    }
  }

  &.disabled {
    border-color: var(--border-2);
    pointer-events: none;
    color: var(--text-1);

    &.dark {
      opacity: 0.2;
    }
  }
}

.icon_label {
  display: flex;
  flex-direction: row;
  gap: Spacings.$spacing02;
  align-items: center;

  @media (max-width: ScreenSizes.$small) {
    .label {
      display: none;
    }
  }
}
